<template>
  <div id="app">
    <!-- 底部标签栏，用router实现页面切换 -->
    <van-tabbar route >
      <van-tabbar-item replace to="/Osword" icon="arrow-left">单手剑类</van-tabbar-item>
      <van-tabbar-item replace to="/Tsword" icon="arrow-left">双手剑类</van-tabbar-item>
      <van-tabbar-item replace to="/Oknife" icon="arrow">单手刀类</van-tabbar-item>
      <van-tabbar-item replace to="/Tknife" icon="arrow">双手刀类</van-tabbar-item>
    </van-tabbar>
    <nav>
      <!-- <router-link to="/">Home</router-link> | -->
      <!-- <router-link to="/about">About</router-link> -->
    </nav>
    <router-view />
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
